<div class="user-center-head"><?php echo L('member_comment')?></div>
<table class="table-list">
  <tr>
    <th width="30%"><?php echo L('goods_name')?></th>
    <th width="20%"><?php echo L('comment_time')?></th>
    <th width="40%"><?php echo L('comment_content')?></th>
    <th width="10%">Status</th>
  </tr>
  <?php
  if(isset($commentList) && $commentList):
  	foreach ($commentList as $comment) :
  ?>
  <tr>
    <td>
	   <?php if(isset($comment['product']) && $comment['product']):?>
        <?php
                            if($comment['product']['is_sell']){
                        $url = '/product';
                    }else{
                        $url = 'designer/info';
                    }
        ?>
        <a href="<?php echo url($url, array('id' => $comment['product_id']))?>">
        <?php echo $comment['product']['name'];?></a>
        <?php endif;?>
    </td>
    <td><?php echo date('Y-m-d H:i', $comment['comment_time']);?></td>
    <td><?php echo $comment['content']?></td>
    <td><?php echo $comment['disabled'] ? '<font color="red">√</font>' : '<font color="blue">×</font>';?></td>
  </tr>
  <?php endforeach;
    else:
  ?>
  <tr>
    <td colspan="4" class="no-record"><?php echo L('norecords')?></td>
  </tr>
  <?php endif;?>
</table>
<div class="page"><?php echo $pageShow;?></div>